package jezyk_java.robert_wolos.klonowanieAiB;

/**
 * Autor: Daniel Michalski
 * Data: 11.07.13
 */

public class Main {
    public static void main(String[] args) throws CloneNotSupportedException {
        A a1 = new A(1);
        B b1 = (B) a1.clone();

        System.out.println("a1.getI() = " + a1.getI());
        System.out.println("b1.getI() = " + b1.getI());

        System.out.println("Zmiana b1.setI(5)");
        a1.setI(5);

        System.out.println("a1.getI() = " + a1.getI());
        System.out.println("b1.getI() = " + b1.getI());
    }
}
